package com.xjrsoft.module.customerTwo.EMP.settlement.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import lombok.Data;

import javax.validation.constraints.Pattern;


/**
 * 数据传输对象实体类
 *
 * @author lisen
 * @since 2023-08-04
 */
@Data
public class TElectricCheckoutSettlementDetailsDto {
	private static final long serialVersionUID = 1L;

	@JsonProperty("fid")
	private String fid;

	@JsonProperty("iteams")
	private String iteams;

	@JsonProperty("numbers")
	@Pattern(regexp = "^[0-9]+\\.{0,1}[0-9]{0,2}$", message = "只能接收数字或小数")
	private BigDecimal numbers;

	@JsonProperty("prices")
	@Pattern(regexp = "^^[0-9]+\\.{0,1}[0-9]{0,2}$", message = "只能接收数字或小数")
	private BigDecimal prices;

	@JsonProperty("amounts")
	@Pattern(regexp = "^^[0-9]+\\.{0,1}[0-9]{0,2}$", message = "只能接收数字或小数")
	private BigDecimal amounts;

	@JsonProperty("checkout_date")
	private LocalDateTime checkoutDate;

	@JsonProperty("notes")
	private String notes;

	@JsonProperty("isreturn")
	private Integer isReturn;

}
